package com.siblings.loan.sys.data.http

import com.siblings.loan.sys.data.ASSycBuilder


object ASUrlHelper {

    fun combineUrl(): String {
        if (ASSycBuilder.host.isBlank() or ASSycBuilder.zone.isBlank() or ASSycBuilder.pathCommon.isBlank()) {
            return ""
        }

        val zone = ASSycBuilder.zone
        ASSycBuilder.zone = zone.replace("/", "")

        val pathCommon = ASSycBuilder.pathCommon
        ASSycBuilder.pathCommon = pathCommon.replace("/", "")

        return ASSycBuilder.host + "/" + ASSycBuilder.zone + "/" + ASSycBuilder.pathCommon
    }

}